import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import HelloChina from "../components/HelloChina";
import User from "../components/User";
import Student from "../components/Student";
import Teacher from "../components/Teacher";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/h',
      name: 'HelloChina',
      component: HelloChina
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/student',
      name: 'Student',
      component: Student
    },
    {
      path: '/teacher',
      name: 'Teacher',
      component: Teacher
    }
  ]
})
